﻿; (function (window, undefined, $) {
    $(document).ready(function () {
        var gridopt = {
            url: options.listUrl,
            colModel: [
                    { display: '编号', name: 'OrderNumber', width: "4%", sortable: true, hide: true, align: 'left', iskey: true },
                    { display: '时间', name: 'myTime', width: "7%", sortable: false, align: 'left' },
                    { display: '新增会员数', name: 'NewMember', width: "5%", sortable: false, align: 'left' },
                    { display: '新增充值会员数', name: 'NewPrepaidMember', width: "5%", sortable: false, align: 'left' },
                    { display: '新增会员充值占比', name: 'RechargePercent', width: "4%", sortable: false, align: 'left' },
                    { display: '累计会员数', name: 'MemberCount', width: "5%", sortable: false, align: 'left' },
                    { display: '会员活跃度', name: 'MemberActivity', width: "5%", sortable: false, align: 'left' },
            ],
            sortname: "ID",
            sortorder: "ASC",
            title: false,
            rp: 15,
            usepager: true,
            showcheckbox: false
        };
        var xjgrid = new xjGrid("gridlist", gridopt);

        $("#formQuery").submit(function () {
            xjgrid.Query(this);
            return false;
        });

        //查询按钮的事件
        $("#btnSearch").click(function () {
            $("#formQuery").submit();
        });


    });
})(window, undefined, jQuery);